package com.daxt.model.dic;

public enum SystemConfigType {

	IS_DEPLOY("IS_DEPLOY","持续部署"), 
	DOC_RUL("DOC_RUL","api doc"),
	ARCHIVES_CODE("ARCHIVES_CODE","档案馆代码"),
	ARCHIVES_NAME("ARCHIVES_NAME","档案馆名称"),
	MEMBER_PRICE("MEMBER_PRICE","会员价格"),
	WATER_MARK("WATER_MARK","水印文字"),
	WATER_MARK_SIZE("WATER_MARK_SIZE","水印字体大小"),
	WATER_MARK_COLOR("WATER_MARK_COLOR","水印颜色RGB 例如：192, 192, 192"),
	WIAACMGR_URL("WIAACMGR_URL","扫描文件路径"),
	MYSQL_BACKUP_CODE("MYSQL_BACKUP_CODE","mysql备份代码"),
	WIAACMGR_BACK_URL("WIAACMGR_BACK_URL","扫描文件备份路径"),
	ISO_DIR("ISO_DIR","ISO文件路径（制作光盘需配置）例如：D:\\UltraISO\\"),
	MYSQL_DIR("MYSQL_DIR","MYSQL安装目录（数据库备份需要）"),
	MYSQL_BACKUP_DIR("MYSQL_BACKUP_DIR","MYSQL备份路径（数据库备份需要）"),
	MYSQL_IP("MYSQL_IP","MYSQL  IP  备份还原需要"),
    ACCESSORY_TYPE("ACCESSORY_TYPE","存储类型，字典AccessoryType"),
	CREATE_NUM("CREATE_NUM","案卷号长度"),
	ITEM_NUM_LENGTH("ITEM_NUM_LENGTH","件号长度"),
	VERSIONS_MARK("VERSIONS_MARK","版本标识 字典VersionsMarkType"),
	SYS_HOME("SYS_HOME","系统地址（例：http://127.0.0.1:7502/）"),
//	OSS_IP("OSS_IP","存储IP（例：http://127.0.0.1:7502/）"),
	OSS_DIR("OSS_DIR","存储目录（例：D:\\home\\jar\\data\\）"),
	TEMP_PATH("TEMP_PATH","临时文件目录（例：D:\\home\\jar\\temp\\）"),
	LOGIN_PATTERN("LOGIN_PATTERN","登录模式，LoginPattern"),
	LOGIN_MODE("LOGIN_MODE","登录模式，默认普通方式，（例sso）"),
	CLASSNUM_WEB("CLASSNUM-WEB","分类号拼接符"),
	PROFILES_ACTIVE("PROFILES_ACTIVE","启动配置参数，例：dev，test等"),
	EXPORT_FILE_DIRECTORY("EXPORT_FILE_DIRECTORY","导出文件存储目录，例：D:/zjq/zip/"),

	ARCHIVES_TIMEOUT("ARCHIVES_TIMEOUT","未归档超时时间（天）");

	private String key;
	private String value;
	
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	private SystemConfigType(String key) {
		this.key = key;
	}
	private SystemConfigType(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public static boolean hasKey(String key) {
		SystemConfigType[] values = SystemConfigType.values();
		for (SystemConfigType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
